class Array:

    def __init__(self, size):
        self.internalList = map(lambda x: None, range(1,size))
        self.size = size
    
    #Common methods
    def size(self):
        return self.size

    def __repr__(self):
        return "an Array with[" + ( ", ".join(map(str, self.internalList))) + "]"

    #End of Common methods

    def __getitem__(self, key):
        return self.internalList[key]

    def __setitem__(self, key, item):
        self.internalList[key] = item

def createArray(size):
    return Array(size)

def sizeOfArray(anArray):
    return anArray.size()
